<?php 
/*
* 阅读日志页面
*/
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<article>
	<div id="article">
    <div class="xcontainer">
    <div class="layout">
    <div id="content">
    <div class="content-header"><div id="tip" style="top: 21px; "></div><div id="godown" style="top: 25px; "></div></div>

			<h2><?php topflg($top); ?><?php echo $log_title; ?></h2>
			    <div class="post-meta-single">
				<span class="com-writer">
					<?php blog_author($author); ?>      </span>
				<span class="con-cate">
					<?php blog_sort($logid); ?>         </span>
                <span class="con-commt">
					<?php echo $value['comnum']; ?> </span>
                <span class="con-edit">                 </span>
                <span class="showclose" style="display: block">♤ 关闭侧边栏</span>
                <span class="con-time">
                　<?php echo gmdate('Y-n-j G:i l', $date); ?>
                </span>
            </div><!--.postMeta-->

			<div id="contentleft">
				<?php echo $log_content; ?>
				<p><?php blog_att($logid); ?></p>
			</div>
            
             <div class="post-info">
					 <script> // 返回顶部的jquery
                     jQuery(document).ready(function($) {
                        $body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body');// 这行是 Opera 的补丁, 少了它 Opera 是直接用跳的而且画面闪烁 by willin
                        $('#content .gotop').click(function(){
                            $body.animate({scrollTop: $('#header').offset().top}, 1000);
                            return false;// 返回false可以避免在原链接后加上
                        });
                    });
                     </script>     
                 <span class="gotop">返回顶部</span>
                 <div class="crumbs">	
                	<ul class="breadcrumbs"><li><?php blog_sort($logid); ?></li></div>
                 <div class="tags"><li><?php blog_tag($logid); ?></li></div>
				 <?php doAction('log_related', $logData); ?>
                 <span class="previous"><?php neighbor_log($neighborLog); ?> </span>
                 <div class="clear"> </div>
				 <?php blog_trackback($tb, $tb_url, $allow_tb); ?>
                 </div><!-- end .post-info -->
				 
	<!--pinglunys-->
				 <div id="comments1"> 

<script language="javascript">
//<![CDATA[
function to_reply(commentID,author) {
var nNd='@'+author+': ';
var myField;
if (document.getElementById('comment') && document.getElementById('comment').type == 'textarea') {
myField = document.getElementById('comment');
} else {
return false;
}
if (document.selection) {
myField.focus();
sel = document.selection.createRange();
sel.text = nNd;
myField.focus();
}
else if (myField.selectionStart || myField.selectionStart == '0') {
var startPos = myField.selectionStart;
var endPos = myField.selectionEnd;
var cursorPos = endPos;
myField.value = myField.value.substring(0, startPos)
+ nNd
+ myField.value.substring(endPos, myField.value.length);
cursorPos += nNd.length;
myField.focus();
myField.selectionStart = cursorPos;
myField.selectionEnd = cursorPos;
}
else {
myField.value += nNd;
myField.focus();
}
}
//]]>
</script>
 
<style>
li {list-style-type:none;}
</style>
    <!--pinglunys-->
				 
<div class="comments_warp">
	<?php blog_comments($comments); ?>
	<?php blog_comments_post($logid,$ckname,$ckmail,$ckurl,$verifyCode,$allow_remark); ?>
	<div style="clear:both;"></div>
				 
</div>				 
</div>	
</div>			 
<?php
 include View::getView('side');
 include View::getView('footer');
?>

</div><!--#layout-->
<div class="clear"></div>
	</div><!--.xcontainer-->
    <div class="clear"></div>
    </div><!--#article-->
    <div class="clear"></div>
</article>